package com.study.talk.module.netty.message.response;

import com.study.talk.module.netty.message.MessageType;
import com.study.talk.module.netty.message.TalkMessage;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *   申请加入群聊后 发出请求的客户端的回响
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ApplyGroupSelfResponse extends TalkMessage {


    @ApiModelProperty("群聊id")
    private Integer groupId;

    @ApiModelProperty("不能发出申请的原因")
    private String reason;

    @ApiModelProperty("是否发出申请成功")
    private Boolean success;

    @Override
    public byte getType() {
        return MessageType.APPLY_GROUP_SELF_RESPONSE;
    }
}
